package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_stat_keywords;

import cn.com.api.mapper.ApiU_stat_keywordsMapper;

import cn.com.api.service.ApiU_stat_keywordsService;

/**
 * 
 **/
@Service
public class U_stat_keywordsServiceImplBase {
	@Autowired
	private ApiU_stat_keywordsMapper apiU_stat_keywordsMapper;
    
    // 根据id获取
	public ApiU_stat_keywords findU_stat_keywordsById(Integer id){
		ApiU_stat_keywords u_stat_keywords = apiU_stat_keywordsMapper.findU_stat_keywordsById( id );
		return u_stat_keywords;
	}
    
    //查看数据集
	public List<ApiU_stat_keywords> findU_stat_keywordss(){
        List<ApiU_stat_keywords> u_stat_keywordss = apiU_stat_keywordsMapper.findU_stat_keywordss();
		return u_stat_keywordss;
    }
   
//    //根据条件查看数据集
//	public List<Map<String, Object>> findU_stat_keywordssByMap(HashMap condition){
//        List<Map<String, Object>> u_stat_keywordss = apiU_stat_keywordsMapper.findU_stat_keywordssByMap(condition);
//		return u_stat_keywordss;
//    }
    
	// 添加
	public int insertU_stat_keywords(ApiU_stat_keywords u_stat_keywords){
		int ret_I= apiU_stat_keywordsMapper.insertU_stat_keywords(u_stat_keywords);
		return ret_I;
	}

	// 修改
	public int updateU_stat_keywords(ApiU_stat_keywords u_stat_keywords){
		int ret_I= apiU_stat_keywordsMapper.updateU_stat_keywords(u_stat_keywords);
		return ret_I;
	}
	
    // 删除
	public int deleteU_stat_keywords(Integer id){
		int ret_I= apiU_stat_keywordsMapper.deleteU_stat_keywords( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


